package com.xbongbong.pro.detailtab.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/25 13:57
 * @since v1.0
 */
@Getter
@Setter
public class CustomerInvoiceSaveDTO extends BaseDTO {
    private static final long serialVersionUID = 684372512933870588L;

    /**
     * 发票信息id
     */
    private Long id;
    /**
     * 抬头类型
     */
    private JSONObject titleType;
    /**
     * 发票抬头
     */
    @Length(max = 100, message = "{dto.msg.customerInvoiceSave.title.Length}")
    private String title;
    /**
     * 纳税识别号
     */
    @Length(max = 100, message = "{dto.msg.customerInvoiceSave.taxpayerNo.Length}")
    private String taxpayerNo;
    /**
     * 注册电话
     */
    @Length(max = 100, message = "{dto.msg.customerInvoiceSave.registeredPhone.Length}")
    private String registeredPhone;
    /**
     * 开户行
     */
    @Length(max = 100, message = "{dto.msg.customerInvoiceSave.bank.Length}")
    private String bank;
    /**
     * 开户行账号
     */
    @Length(max = 50, message = "{dto.msg.customerInvoiceSave.account.Length}")
    private String account;
    /**
     * 开票地址
     */
    @Length(max = 200, message = "{dto.msg.customerInvoiceSave.invoiceAddress.Length}")
    private String invoiceAddress;
    /**
     * 客户id
     */
    @NotNull(message = "{dto.msg.customerInvoiceSave.customerId.NotNull}")
    private Long customerId;

    /**
     * 是否默认地址 0：否，1：是
     */
    private Integer isDefault;
}
